<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>出错</title>
</head>
<style>
    div{padding: 5px;}
    div span{font-weight: bold;}
</style>
<body>
<div><span>错误信息：</span><?php echo $e['message'];?></div>
<?php
   if(DEBUG && isset($e['file'])):
?>
<div><span>错误位置：</span>FILE:<?php echo $e['file'].' LINE:'.$e['line'];?></div>
<?php endif ?>

<?php if(isset($e['trace'])):?>
<div><span>Trace</span><br/> <?php echo nl2br($e['trace']);?></div>
<?php endif ?>
</body>
</html>